package com.yafeng.logic.mapper;

import com.yafeng.logic.vo.QueryUserInfo;
import com.yafeng.logic.entity.UserOprator;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cn.classbao
 * @since 2020-08-04
 */
@Repository
public interface UserOperatorMapper extends BaseMapper<UserOprator> {

    List<UserOprator> userQueryList(@Param("queryUserInfo") QueryUserInfo queryUserInfo);

    void insertUserIdAndRoleId(@Param("userId") Integer userId, @Param("roleId")Integer roleId);

    void deleteUserIdInfo(@Param("userId")Integer userId);
}
